package com.taotao.web;

import com.taotao.TaotaoResult;
import com.taotao.service.TbItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author evader
 * @date 2020-10-09 14:07
 */
@RestController
@RequestMapping("/item")
public class TbItemController {

    @Autowired
    private TbItemService tbItemService;

    @RequestMapping("/get_item_detail/{id}")
    public TaotaoResult getItemDetails(@PathVariable Long id) {
        TaotaoResult result = tbItemService.getItemDetails(id);
        return result;
    }

}

